Skip to main content
This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal

Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum


  

PreviousPrevious NextNext

RE: Memory leak on LS agent calling java via LS2J
~Umberto Nongeroson 15.Jan.04 02:59 AM a Web browser
Applications Development 6.5; 6.0.3 Windows 2000


Hi Manfred -
Just a very fundamental suggestion. In your Java source code, make sure that you are cleaning up (ie, setting to null) all global objects. For example, set all Strings, HashMaps, Vectors, Connections, etc, to null. In theory, this should finalize any objects that may be hanging around in memory. If you have any instances of custom defined objects, clean them up as well (you can do this in a finalize method if necessary). When all objects have been "cleaned up" call
    System.runFinalization();
      and
    System.gc();

This may be really basic and it may also seem to defeat the purpose of automatic garbage collection, but it has helped me with similar problems. Also make sure you delete the JavaSession (LS2J) object.
dgg




Memory leak on LS agent calling jav... (~Patti Umjipyli... 14.Jan.04)
. . RE: Memory leak on LS agent calling... (~Richard Nontoo... 15.Jan.04)
. . . . RE: Memory leak on LS agent calling... (~Patti Umjipyli... 15.Jan.04)
. . Welcome to LS2J. Great theory, suck... (~Delores Dwonic... 16.Jan.04)
. . . . RE: Welcome to LS2J. Great theory, ... (~Richard Nontoo... 17.Jan.04)
. . . . RE: Welcome to LS2J. Great theory, ... (~Patti Umjipyli... 17.Jan.04)
. . . . . . Thanks, sounds good ;-) (WAS: Welco... (~Delores Dwonic... 17.Jan.04)


Document Options






  Document options
Print this pagePrint this page

Search this forum

Forum views and search


  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Category
Platform
Release
Advanced search

Member Tools


RSS Feeds

 RSS feedsRSS
All forum posts RSS
All main topics RSS